<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="org.lanqiao.dxzf.entity.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        <link type="text/css" rel="stylesheet" media="all" href="${pageContext.request.contextPath}/css/global.css" />
        <link type="text/css" rel="stylesheet" media="all" href="${pageContext.request.contextPath}/css/global_color.css" />
        <!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"type="text/javascript"></script> -->
        <script language="javascript" type="text/javascript">
            //保存成功的提示消息
            function showResult() {
            	alert("确定修改吗？");
            	var form = new FormData(document.getElementById("tf"));
            	
            	$.ajax{
            		url:'modiAdmin.do',
            		data: form,
            		type:'post',
            		success:function(){
            			showResultDiv(true);
            		}
            	};
                
                window.setTimeout("showResultDiv(false);", 3000);
            }
            function showResultDiv(flag) {
                var divResult = document.getElementById("save_result_info");
                if (flag)
                    divResult.style.display = "block";
                else
                    divResult.style.display = "none";
            }
        </script>
    </head>
    <body>
        <!--Logo区域开始-->
        <%@include file="../include/header.jsp"%>
        <!--导航区域结束-->
        <!--主要区域开始-->
        <div id="main">            
            <div id="save_result_info" class="save_success">保存成功！</div>
            <form action="modiAdmin.do" method="post" class="main_form" id="tf">
            <input type="hidden" name="aid" value="${admin.aid}"/>
                    <div class="text_info clearfix"><span>姓名：</span></div>
                    <div class="input_info">
                        <input type="text" value="${admin.aname}" name="aname"/>
                        <span class="required">*</span>
                        <div class="validate_msg_long error_msg" style="display: none;">20长度以内的汉字、字母、数字的组合</div>
                    </div>
                    <div class="text_info clearfix"><span>管理员账号：</span></div>
                    <div class="input_info"><input type="text" readonly="readonly" class="readonly" value="${admin.aaccount}"  /></div>
                    <div class="text_info clearfix"><span>电话：</span></div>
                    <div class="input_info">
                        <input type="text" value="${admin.atel}" name="atel" />
                        <span class="required">*</span>
                        <div class="validate_msg_long error_msg" style="display: none;">正确的电话号码格式：手机或固话</div>
                    </div>
                    <div class="text_info clearfix"><span>Email：</span></div>
                    <div class="input_info">
                        <input type="text" class="width200" value="${admin.aemail}" name="aemail"/>
                        <span class="required">*</span>
                        <div class="validate_msg_medium error_msg" style="display: none;">50长度以内，正确的 email 格式</div>
                    </div>
                    <div class="text_info clearfix"><span>权限：</span></div>
                    <div class="input_info_high">
                        <div class="input_info_scroll">
                            <ul>
                                <li><input type="checkbox" />角色管理权限</li>
                                <li><input type="checkbox" />管理员权限</li>
                                <li><input type="checkbox" />资费管理权限</li>
                                <li><input type="checkbox" />账务账号权限</li>
                                <li><input type="checkbox" />业务账号权限</li>
                                <li><input type="checkbox" />账单权限</li>
                                <li><input type="checkbox" />报表权限</li>
                            </ul>
                        </div>
                        <span class="required">*</span>
                        <div class="validate_msg_tiny error_msg" style="display: none;">至少选择一个</div>
                    </div>
                    <div class="button_info clearfix">
                        <input type="submit" value="保存" class="btn_save" onclick="" />
                        <input type="button" value="取消" class="btn_save" />
                    </div>
                </form>  
        </div>
        <!--主要区域结束-->
        <div id="footer">
           
        </div>
    </body>
</html>
